import axios from '@/libs/request/axios'
// 获取凭证模板信息数据多条件
export const getAllVoucherEntry = (id,params) => {
    return axios.request({
        url: `/contractAccount/voucherEntry/getAllVoucherEntry/${id}`,
        data: params,
        method: 'post'
    })
}

// 保存凭证信息
export const  saveVoucherEntry= (params) => {
    return axios.request({
        url: '/contractAccount/voucherEntry/save',
        data: params,
        method: 'post'
    })
}
//编辑凭证分录信息
export const editVoucherEntry = (params) => {
    return axios.request({
        url: '/contractAccount/voucherEntry/edit',
        data: params,
        method: 'post'
    })
}
//删除凭证分录信息
export const deleteVoucherEntry = (id,params) => {
    return axios.request({
        url: `/contractAccount/voucherEntry/delete/${id}`,
        data: params,
        method: 'post'
    })
}
//暂存凭证分录信息
export const temporaryStorage = (params) => {
    return axios.request({
        url: `/contractAccount/voucherEntry/temporaryStorage`,
        data: params,
        method: 'post'
    })
}
